//
//  BKGDSpecificationController.h
//  bestkeep
//
//  Created by 武探 on 2017/1/11.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import "BKGDBaseViewController.h"

@class BKGDSpecificationController;
@class BKGDSKUObject;

@protocol BKGDSpecificationControllerDelegate <NSObject>

@optional
-(void)specification:(BKGDSpecificationController*)controller DidSelectedSKUObject:(BKGDSKUObject*)skuObject selectMessage:(NSString*)message;
-(void)specification:(BKGDSpecificationController*)controller bottomButtonTouchUpInside:(UIButton*)button;
-(void)specification:(BKGDSpecificationController*)controller selectedCountChanged:(NSInteger)selectedCount;

-(void)specificationDidTouchClose:(BKGDSpecificationController*)controller;

@end


@interface BKGDSpecificationController : BKGDBaseViewController

@property(nonatomic,strong) BKGDObject *goodsDetail;
@property(nonatomic,strong,readonly) BKGDSKUObject *selectedObject;
/**
 选择描述，只有命中全部属性后才会有信息 否则为 nil
 */
@property(nonatomic,strong,readonly) NSString *selectedMessage;

/**
 购买数量
 */
@property(nonatomic,assign,readonly) NSInteger selectedCount;
@property(nonatomic,weak) id<BKGDSpecificationControllerDelegate> delegate;

@end
